package com.young.design.pattern.factory.factorymethod;

/**
 * 测试代码
 */
public class FactoryMentodTest {
    public static void main(String[] args) {
        FactoryMethod squareShapeFactory = new SquareShapeFactory();
        FactoryMethod triangleShapeFactory = new TriangleShapeFactory();
        squareShapeFactory.createShape().draw();
        triangleShapeFactory.createShape().draw();
    }
}
